package bean;

/**
 * @author 飞哥
 * @version V1.0
 * @package bean
 * @date 2021/7/14 9:15
 */
public class ViewStudent {
    /**
     * Student对象中属性为id,name,email,age
     * ViewStudent对象中属性为：id,name
     * 把同名属性赋值给ViewStudnet对象，其他属性被忽略掉
     */
    private Integer id;
    private String name;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "ViewStudent{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
